<?php
class C_report extends CI_Controller {
	function __construct(){
		parent::__construct();
		checkLogin();
		$this->load->model('m_report');
	}
    
    function index(){
        $data["loket"] = $this->m_public_function->_loket();
        $data["data"] = $this->m_report->getdata();
        $html = $this->load->view('print/v_report',$data,true);
        
        $file = fopen("print/report.html","w+");
        fwrite($file,$html);
        fclose($file);
        
        
        $this->load->view('app/v_report',$data );
    }
}